const Controller = require('egg').Controller;

class SwiperController extends Controller {
  async getSwiper() {
    const { ctx } = this;
    let ids = JSON.parse(ctx.request.query[0]) 
    const swiperList = await ctx.service.swiper.getSwiperList(ids)
    if(swiperList) {
      ctx.body = {
        code: 20000,
        data: swiperList
      }
    }
  }
}

module.exports = SwiperController;